package com.xja.entity;


/**
 * @projectName: HotelManager
 * @package: com.xja.entity
 * @className: User
 * @author: WenLiang0214
 * @description:用户实体类
 * @date: 2022/5/5 19:14
 */
public class User {
    //用户ID
    private Integer userId;
    //用户姓名
    private String userName;
    //用户电话号
    private String userPhone;
    //用户性别
    private String userGender;
    //用户身份证号
    private String userCard;
    //用户级别（0表示普通，1表示VIP）
    private Integer userLevel;
    //用户密码
    private String userPassWord;

    //全参构造
    public User(Integer userId, String userName, String userPhone, String userGender, String userCard, Integer userLevel, String userPassWord) {
        this.userId = userId;
        this.userName = userName;
        this.userPhone = userPhone;
        this.userGender = userGender;
        this.userCard = userCard;
        this.userLevel = userLevel;
        this.userPassWord = userPassWord;
    }


    //去掉ID属性的构造
    public User(String userName, String userPhone, String userGender, String userCard, Integer userLevel, String userPassWord) {
        this.userName = userName;
        this.userPhone = userPhone;
        this.userGender = userGender;
        this.userCard = userCard;
        this.userLevel = userLevel;
        this.userPassWord = userPassWord;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getUserGender() {
        return userGender;
    }

    public void setUserGender(String userGender) {
        this.userGender = userGender;
    }

    public String getUserCard() {
        return userCard;
    }

    public void setUserCard(String userCard) {
        this.userCard = userCard;
    }

    public Integer getUserLevel() {
        return userLevel;
    }

    public void setUserLevel(Integer userLevel) {
        this.userLevel = userLevel;
    }

    public String getUserPassWord() {
        return userPassWord;
    }

    public void setUserPassWord(String userPassWord) {
        this.userPassWord = userPassWord;
    }

    //无参构造
    public User() {
    }
    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", userPhone='" + userPhone + '\'' +
                ", userGender='" + userGender + '\'' +
                ", userCard='" + userCard + '\'' +
                ", userLevel=" + userLevel +
                ", userPassWord='" + userPassWord + '\'' +
                '}';
    }


}
